/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.risk.service.api;


import com.koron.common.bean.StaffBean;
import com.koron.common.domain.DataBean;
import com.koron.risk.domain.PointManagement;
import org.koron.ebs.mybatis.SessionFactory;
import org.swan.bean.MessageBean;

import java.util.List;
import java.util.Map;

public interface PointManagementService {
    MessageBean<?> sava(StaffBean user, PointManagement point);

    MessageBean<PointManagement> details(StaffBean user, String id);

    MessageBean<Integer> delete(String id);

    MessageBean<DataBean> list(StaffBean user,String corpCode, String name, String title, String type, Integer operationType,Integer page, Integer pageSize);

    MessageBean<List> getAll(StaffBean user, String corpCode);

    MessageBean<List<Map>> safetyCheckAnalysis(SessionFactory factory, String corpCode, Integer year);

    MessageBean<Map> dangerAnalysis(SessionFactory factory, String corpCode);

    MessageBean<Map> dangerAnalysisWithDate(SessionFactory factory, String corpCode);

    MessageBean<Map> dangerousOperationAnalysis(SessionFactory factory, String corpCode, String operationTicketType, Integer year);

    MessageBean<Map> safetyDrillAnalysis(SessionFactory factory, String corpCode, String time, Integer year, Integer mouth);

    MessageBean<Map> safetyTrainAnalysis(SessionFactory factory, String corpCode, String time, Integer year, Integer mouth);

    MessageBean<Map> getHazarsSourceAnalysis(SessionFactory factory, String corpCode);

    MessageBean<PointManagement> tree(StaffBean user);

}
